package com.mz.ozy.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.mz.ozy.R;
import com.mz.ozy.bean.BankListFBean;
import com.mz.ozy.utils.glideUtils.GlideUtils;

import java.util.List;

/**
 *
 */

public class BankListAdapter extends BaseQuickAdapter<BankListFBean.BankListBean, BaseViewHolder> {

    public BankListAdapter(List<BankListFBean.BankListBean> data) {
        super(R.layout.item_bank_list, data);

    }

    @Override
    protected void convert(BaseViewHolder helper, BankListFBean.BankListBean item) {
        ImageView imageView = helper.getView(R.id.image_name);
        GlideUtils.loadAvatar(mContext,imageView,item.getImg());

        helper.setText(R.id.tv_name, item.getName());


    }


}
